# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.contrib import admin
from dao import models

# Register your models here.


admin.site.site_title = 'ate2345后台管理'
admin.site.site_header = 'ate2345'
admin.site.index_title = 'ate2345 home'


@admin.register(models.BxSlider)
class BxSliderAdmin(admin.ModelAdmin):
	list_display = ('status', 'name', 'href')  # admin管理后台，列表显示的模型字段
	# fields = ('name', 'href')  # admin管理后台，详情中显示的模型字段，即添加或修改时显示的模型字段

	fieldsets = (
		('详细信息', {
			'classes': ('wide', 'extrapretty'),
			'fields': ('status', 'name', 'href'),
		}),
		('上传图片', {
			'fields': ('img',),
		}),
	)


@admin.register(models.Student)
class StudentAdmin(admin.ModelAdmin):
	list_display = ('status', 'name')


@admin.register(models.StudentDetail)
class StudentDetailAdmin(admin.ModelAdmin):
	# list_display_link = ('letter_of_thanks')
	pass

@admin.register(models.Classification)
class ClassificationAdmin(admin.ModelAdmin):
	list_display = ('name', 'weight')


@admin.register(models.Video)
class VideoAdmin(admin.ModelAdmin):
	list_display = ('title',)


@admin.register(models.Dirction)
class Dirction(admin.ModelAdmin):
	# list_display = ('name',)
	pass